function onLogin() {
	var phone = $("#phoneNum").val();
	var password = $("#password").val();
	var value = $("#roleSelect").val();
	console.log("phone: ", phone);
	console.log("password: ", password);
	console.log("roleSelect: ", value);
	if (isNullOrEmpty(phone) || isNullOrEmpty(password)) {
		$.MsgBox.Alert("系统消息", "账号或密码不能为空！");
		return;
	}
	var data = {
		phone: phone,
		password: strEnc(password, desKey1, desKey2, desKey3),
		type: value
	};
	post("/a02/sysdoctor/doctorsLogin", data,
		function(res) {
			console.log("res: ", res);
			setAccount(phone);
			setIdentity(value);
			setUserInfo(res.data);
			if (res.code === 200) {
				window.location.href = 'home.html';
			}
		},
		function(e) {
			console.log("e: ", e);
		});
	// $.MsgBox.Alert("系统消息", "账号或密码错误");
	// $.MsgBox.Confirm("温馨提示", "确定要进行修改吗？", okCallback);
}

function okCallback() {
	alert("你点击了确定,重新进行认证");
}

function phoneInput(event) {
	let value = event.target.value;
	if (!jQuery.isEmptyObject(value)) {
		$("#phoneClear").show();
	} else {
		$("#phoneClear").hide();
	}
}

function passwordInput(event) {
	let value = event.target.value;
	if (!jQuery.isEmptyObject(value)) {
		$("#passwordClear").show();
	} else {
		$("#passwordClear").hide();
	}
}

function onPhoneClear() {
	$("#phoneInput").val("")
	$("#phoneClear").hide();
}

function onPasswordClear() {
	$("#passwordInput").val("")
	$("#passwordClear").hide();
}
